#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QAudioSource>
#include <videoinput.h>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    static int startAudioInput();
    static int startVideoInput();

public:

private slots:
    void on_videoRecordBtn_clicked();
    void on_audioRecordBtn_clicked();

private:
    Ui::MainWindow *ui;
    static QAudioSource *m_audioSource;
    static VideoInput *m_videoInput;
    int m_vrecord_flag = false;
    int m_arecord_flag = false;
};
#endif // MAINWINDOW_H
